<?php
ini_set("display_errors","1");
    //require_once('config.php');
    //require_once('global.php');
    //session_id() || session_start();
    //b($data, "data", "");
    //$params = json_decode($data);
    //write_log(json_encode($params));
    //$act = $params->action;
    //write_log("action:" . $act);
    //$u = check_login();
    ///*if($u === FALSE && $act != "login")
    //{
    //    returnError(ErrorCode::NO_LOGIN);
    //    exit();
    //}*/
    //
    //$flp=VIEW_DIR . $ROUTER[$act];
    //if(file_exists($flp))
    //{
    //    write_log("include file:" . $flp);
    //    include($flp);
    //}
    //else
    //{
    //    returnError(MisErrorCode::PARAM_INVALID, "操作参数无效");
    //}
?> 
